<template>
	<view>
			<i class='iconfont icon-saoyisao' @tap="scanCode"></i>
			<!-- <i class="iconfont icon-saoyisao"></i> -->
	</view>
</template>

<script>
	export default {
		name:"my-scanCode",
		data() {
			return {
				
			};
		},
		methods:{
			scanCode(){ 
				var _this=this;
				uni.scanCode({
					onlyFromCamera: true,
					success: (res)=> {
						console.log(res);
					}
				});
			},
		}
	}
</script>

<style lang="scss">
.icon-saoyisao {
  font-size: 20px;
}
</style>